#include <iostream>
#include "selectServer.hpp"

// ./selectServer port
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cerr << "Usage Error: \n\t" << argv[0] << " port" << std::endl;
        return -1;
    }

    EnableScreen();
    uint16_t port = std::atoi(argv[1]);
    std::unique_ptr<SelectServer> svr = std::make_unique<SelectServer>(port);
    svr->Loop();

    return 0;
}